import Vue from 'vue'
import VueRouter from 'vue-router'





Vue.use(VueRouter)

import ErrorRoute from '@/views/errors/route'
import StartRoute from '@/views/start/route'
import MainRoute from '@/views/main/route'
import GoodRoute from '@/views/good/route'

const routes = [
 
  ...ErrorRoute,
  ...StartRoute,
  ...MainRoute,
  ...GoodRoute,
 
  {
    path:"/",
    redirect:{
      name:"shouye"
    }
  },
  {
    path:"/search",
    name:'search',
    component:()=>import('@/views/search/search.vue')
  },
  {
    path:"/dingdan",
    name:"dingdan",
    component:()=>import('@/views/dingdan/dingdan.vue')
},
{
  path:"/dizhi",
  name:"dizhi",
  component:()=>import('@/views/dizhi/dizhi.vue')
},
{
  path:"/placeList",
  name:"placeList",
  component:()=>import('@/views/dizhi/placeList.vue')
},
{
  path:"/placeLists",
  name:"placeLists",
  component:()=>import('@/views/dizhi/placeLists.vue')
},



]

const router = new VueRouter({
  mode: 'hash',
  base: process.env.BASE_URL,
  routes
})

export default router
